import {BehaviorWithStore} from 'mobx-miniprogram-bindings'
import {cartStore} from '../../stores/cartObj'
import {userStore} from '../../stores/userstore'

export default BehaviorWithStore({
  storeBindings: [
    {
      store: cartStore,
      fields: ['addressObj','storeObj'],
      actions: ['changeStoreObj','changeAddressObj']
    },{
      store: userStore,
      fields: ['token', 'userInfo'],
      actions: ['setToken', 'setUserInfo']
    },
  ]
})